<div ng-controller="SendIntentionCtrl as vm">
  <h2>选择司机以及车辆</h2>
  <div class="well">
    <form class="form-horizontal" ng-submit="vm.submitIntention()">
      <div class="control-group" ng-show="vm.userRole!='carrier'">
          <label class="control-label">选择个人用户</label>
          <div class="controls">
            <select class="input-large" ng-model="vm.carrierId" ng-options="o.id as o.selectObj for o in carriers" ng-change="vm.selectChange(vm.carrierId)">
              <option value="">-- 请选择 --</option>
            </select>
            <p class="help-block"></p>
          </div>
        </div>
        <div class="control-group">
            <!-- Select Basic -->
            <label class="control-label">车辆</label>
            <div class="controls">
                <select class="input-large" ng-model="vm.carId" ng-options="o.id as o.vehicleNumber for o in cars">
                    <option value="">-- 请选择 --</option>
                </select>
                <p class="help-block"></p>
            </div>
        </div>
      <div class="control-group">
        <!-- Select Basic -->
        <label class="control-label">司机</label>
        <div class="controls">
          <select class="input-large" ng-model="vm.driverId" ng-options="o.id as o.name for o in drivers">
            <option value="">-- 请选择 --</option>
          </select>
           <p class="help-block"></p>
        </div>
      </div>
        <div class="control-group">
            <!-- Select Basic -->
            <label class="control-label">竞价</label>
            <div class="controls">
                <input type="text" placeholder="" ng-model="vm.price" class="input-large"> 元
                <p class="help-block"></p>
            </div>
        </div>
      <button class="btn btn-primary" ><i class="icon-save"></i> 发起申请</button>
    </form>
  </div>
</div>